//
//  ConstDef.h
//  舟航007机车卫士
//
//  Created by admin on 15/11/9.
//  Copyright (c) 2015年 redoor. All rights reserved.
//

#ifndef __007_____ConstDef_h
#define __007_____ConstDef_h


#define DEBUG 1


//-------------------获取设备大小-------------------------

//获取屏幕 宽度、高度
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

//获取当前屏幕的宽度、高度
#define AppFrame_WIDTH  ([UIScreen mainScreen].applicationFrame.size.width)
#define AppFrame_HEIGHT ([UIScreen mainScreen].applicationFrame.size.height)

//获取tabbar高度
#define TABBAR_HEIGHT self.tabBarController.tabBar.bounds.size.height

#define K_AppDelegate (AppDelegate*)[[UIApplication sharedApplication] delegate]

//#define urlstring @"http://appif.jszhtech.com:8080/ebappif/appif/getVerifyCode.do"
#define urlstring @"https://appif.jszhtech.com:8443/ebappif/appif/"
#define timeinterval 3.0
#define startloadtime 0.3
#define endloadtime 0.5
#define reloadmaptime 10.0
#define CurrentVersion @"1.0"
#define kAlphaNum @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
#define kHarpyAppID @"itms://itunes.apple.com/cn/app/walter-russo-foa-2010/id397281245?mt=8"
#define APP_URL  @"appurl"

#define W (SCREEN_WIDTH/320)
#define H (SCREEN_HEIGHT/568)
#define K_TimeOutInterval 10.0

#define AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES

#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1.0f]
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]



#endif
